﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BG_Comments.aspx.cs" Inherits="BG_Manage_BG_Comments" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="BG_CSS/Main.css" rel="stylesheet" type="text/css" />
    <title>新闻评论</title>
</head>

<body>
    <form id="form1" runat="server">
        <div>
            <!-- 顶部栏-->
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="17" valign="top" background="BG_IMG/Main/mail_leftbg.gif">
                        <img src="BG_IMG/Main/left-top-right.gif" width="17" height="29" /></td>
                    <td valign="top" background="BG_IMG/Main/content-bg.gif">
                        <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
                            <tr>
                                <td height="31">
                                    <div class="titlebt">新闻评论</div>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td width="16" valign="top" background="BG_IMG/Main/mail_rightbg.gif">
                        <img src="BG_IMG/Main/nav-right-bg.gif" width="16" height="29" /></td>
                </tr>
                <!-- 中部栏-->
                <tr>
                    <td valign="middle" background="BG_IMG/Main/mail_leftbg.gif" style="height: 19px">
                    </td>
                    <td valign="top" bgcolor="#F7F8F9" style="height: 19px">
                        <div align="center">
                            <asp:Label ID="smslabel" runat="server" Height="8px" Width="100%"></asp:Label>
                        </div>
                        
                        <!--*********************************************************************************************-->
                        <div id="main">
                            <div align="center">
                                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                    DataKeyNames="CmtID" CellPadding="4" ForeColor="#333333" GridLines="None" Width="80%" OnPageIndexChanging="GridView1_PageIndexChanging" OnRowCommand="GridView1_RowCommand">
                                    <Columns>
                                        <asp:BoundField DataField="CmtID" HeaderText="评论ID" InsertVisible="False" ReadOnly="True"
                                            SortExpression="CmtID" />
                                        <asp:BoundField DataField="NewsID" HeaderText="新闻ID" SortExpression="NewsID" />
                                        <asp:BoundField DataField="Contents" HeaderText="评论内容" SortExpression="Contents" />
                                        <asp:BoundField DataField="UserID" HeaderText="评论者ID" SortExpression="UserID" />
                                        <asp:BoundField DataField="CreateTime" HeaderText="评论时间" SortExpression="CreateTime" />
                                        <asp:BoundField DataField="IP" HeaderText="评论发布IP" SortExpression="IP" />
                                        <asp:TemplateField HeaderText="操 作">
                                            <ItemTemplate>
                                                <asp:Button ID="btnEdit" runat="server" Text="编 辑" CausesValidation="False" CommandName="EditComments"
                                                    CommandArgument='<%#Eval("CmtID") %>' />
                                                <asp:Button ID="btnDel" runat="server" Text="删 除" CausesValidation="False" CommandName="DeleteComments"
                                                    OnClientClick='return confirm("您真的要删除这条记录吗？")' CommandArgument='<%#Eval("CmtID") %>' />
                                            </ItemTemplate>
                                            <ItemStyle HorizontalAlign="Center" />
                                        </asp:TemplateField>
                                    </Columns>
                                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                    <EditRowStyle BackColor="#999999" />
                                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                </asp:GridView>
                                <br />
                                
                                 <div class="cardadd" style="text-align: center">
                                 <table border="0" cellpadding="0" cellspacing="0" style="width: 80%">
                                    <tr>
                                        <td style="background-color: #5d7b9d; height: 30px; color: white;" align="center" colspan="3">
                                            <strong><asp:Label ID="labshow" runat="server" Text="修改评论内容"></asp:Label></strong>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 200px; height: 38px;" align="right">
                                            评论内容：
                                        </td>
                                        <td style="font-size: larger; height: 50px;" align="center" colspan="2">
                                        <textarea id="txtComments" name="txtComments" rows="3" cols="75" runat="server" ></textarea>
                                          
                                        </td>
                                    </tr>
                                    <tr>
                                                                                 
                                    </tr>
                                    <tr>
                                        <td align="center" colspan="3">
                                            <asp:Button ID="btnEdit" runat="server" Text="· 修改 ·" OnClick="btnEdit_Click" />&nbsp;&nbsp;
                                            <asp:Button ID="btnReset" runat="server" Text="· 重置 ·" OnClick="btnReset_Click" />

                                            <asp:HiddenField ID="hdID" runat="server" Value="0" />
                                        </td>
                                    </tr>
                                </table>
                                 </div>
                      
                                <br />
                                
                            </div>
                        </div>
                        
                        
                        <!--*********************************************************************************************-->
                    </td>
                    <td background="BG_IMG/Main/mail_rightbg.gif" style="height: 19px">
                    </td>
                </tr>
                <!-- 底部栏-->
                <tr>
                    <td valign="bottom" background="BG_IMG/Main/mail_leftbg.gif">
                        <img src="BG_IMG/Main/buttom_left2.gif" width="17" height="17" /></td>
                    <td background="BG_IMG/Main/buttom_bgs.gif">
                        <img src="BG_IMG/Main/buttom_bgs.gif" width="17" height="17" /></td>
                    <td valign="bottom" background="BG_IMG/Main/mail_rightbg.gif">
                        <img src="BG_IMG/Main/buttom_right2.gif" width="16" height="17" /></td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
